package com.h.common.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.pandawork.core.entity.AbstractEntity;

/**
 *销售记录
 */
@Entity
@Table(name = "t_salesrecords")
public class SaleSrecords extends AbstractEntity {
	private static final long serialVersionUID = 4735732035329382029L;

	@Id
	@Column(name = "id" , unique = true , nullable = false)
	private Integer id;
	
	@Column(name = "num")
	private Integer num;//小票单号
	
	@Column(name = "buy_data")
	private Date date;//购买时间
	
	@Column(name = "paid")
	private Float paid;//实收金额
	
	@Column(name = "actual")
	private Float actual;//应收金额
	
	@Column(name = "change")
	private Float change;//找零

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Float getPaid() {
		return paid;
	}

	public void setPaid(Float paid) {
		this.paid = paid;
	}

	public Float getActual() {
		return actual;
	}

	public void setActual(Float actual) {
		this.actual = actual;
	}

	public Float getChange() {
		return change;
	}

	public void setChange(Float change) {
		this.change = change;
	}

}
